package com.backend.system.beans.permission;

import com.backend.system.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * 按角色查询全部权限（标识已拥有、未拥有）请求体
 *
 * @author backend-manage
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel
@Data
public class ListPermissionByRoleReq extends PageRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = -4378237742057628045L;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", required = true)
    private Long roleId;
}
